package com.simplefaith.delisty.util;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import com.simplefaith.delisty.R;

public class ActivitySwitcher {

	public static void switchActivity(Context context, Class<?> cls,
			boolean finishActivity) {

		Activity activity = (Activity) context;

		Intent intent = new Intent(activity, cls);

		activity.startActivityForResult(intent, 11);

		// Effect
		activity.overridePendingTransition(R.anim.activity_zoomin,
				R.anim.activity_zoomout);

		activity.finish();
		
	}

}
